package com.gqb.web;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

public class Request {
	/**
	 * 请求的方法类型
	 * get,post,delete,update
	 */
	public String method;
	
	/**
	 * 请求的路劲
	 */
	public String requestPath;

	public Request(String method, String requestPath) {
		super();
		this.method = method;
		this.requestPath = requestPath;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getRequestPath() {
		return requestPath;
	}
	public void setRequestPath(String requestPath) {
		this.requestPath = requestPath;
	}

	@Override
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	@Override
	public boolean equals(Object obj) {
		return EqualsBuilder.reflectionEquals(this, obj);
	}
	
	
	
}
